package com.example.springbootmybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.example.springbootmybatisplus.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 权限
 * </p>
 *
 * @author zx
 * @since 2021-09-03
 */
@Data
  @EqualsAndHashCode(callSuper = true)
    @TableName("acl_permission")
public class Permission extends BaseEntity {

    private static final long serialVersionUID = 1L;

      /**
     * 所属上级
     */
      private Long pid;

      /**
     * 名称
     */
      private String name;

      /**
     * 类型(1:菜单,2:按钮)
     */
      private Integer type;

      /**
     * 权限值
     */
      private String permissionValue;

      /**
     * 访问路径
     */
      private String path;

      /**
     * 组件路径
     */
      private String component;

      /**
     * 图标
     */
      private String icon;

      /**
     * 状态(0:禁止,1:正常)
     */
      private Integer status;

      /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
      @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
